{include "header.tpl"}

<form method="post" action="/Shop/clerkModify" class="form-horizontal" role="form">
    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">连锁店名称:</label>
        <div class="col-sm-5">
            {if $isadmin eq 1}
                <select name="shop" class="form-control">
                    {foreach from=$shopList item=item}
                        <option value="{$item.id}" {if $data.shop_id eq $item.id}selected{/if}>
                            {$item.name}【{if $item.status eq 1}正常{elseif $item.status eq 2}禁用{else}删除{/if}】
                        </option>
                    {/foreach}
                </select>
            {else}
                <input type="text" value="{$data.shop_name}" class="form-control" disabled/>
            {/if}
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">店员昵称:</label>
        <div class="col-sm-5">
            <input type="text" value="{$data.nickname}" class="form-control" disabled/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">店员姓名:</label>
        <div class="col-sm-5">
            <input type="text" name="username" value="{$data.username}" class="form-control"/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">店员手机号:</label>
        <div class="col-sm-5">
            <input type="text" id="phone" name="phone" value="{if $data.phone}{$data.phone}{/if}" class="form-control"/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">状态:</label>
        <div class="col-sm-5">
            <label><input type="radio" value="1" name="status" {if $data.status eq 1} checked{/if}> 正常</label>
            <label><input type="radio" value="2" name="status" {if $data.status eq 2} checked{/if}> 禁用</label>
            {*<label><input type="radio" value="-1" name="status" {if $data.status eq -1} checked{/if}> 删除</label>*}
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">&nbsp;</label>
        <div class="col-sm-3">
            <input type="hidden" name="uid" value="{$smarty.get.uid}"/>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>
</form>

<script type="text/javascript">


</script>
{include "footer.tpl"}